package com.example.springbootblog.service;

import com.example.springbootblog.common.pojo.request.AddBlogParam;
import com.example.springbootblog.common.pojo.request.BlogRequest;
import com.example.springbootblog.common.pojo.request.UpdateBlogParam;
import com.example.springbootblog.common.pojo.response.BlogInfoResponse;
import com.example.springbootblog.common.pojo.response.BlogResponse;

import java.util.List;

//@Service
public interface BlogService {
    List<BlogInfoResponse> getBlogs();

    BlogInfoResponse getBlogDetail(Integer blogId);

    boolean addBlog(AddBlogParam blogParam);

    boolean updateBlog(UpdateBlogParam param);

    boolean deleteBlogById(Integer blogId);

    BlogResponse<List<BlogInfoResponse>> getListByPage(BlogRequest pageRequest);
}
